<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/23
 * Time: 15:04
 */
use yii\widgets\ActiveForm;
use common\components\widgets\Datetimepicker;

Datetimepicker::widget(['timepicker' => 'false', 'datepicker' => 'true', 'step' => '5']);
?>
<?php $form = ActiveForm::begin(['enableAjaxValidation' => true, 'enableClientValidation' => false, 'options' => ['class' => 'form-validate']]); ?>
    <table width="100%" class="table-form">
        <tr>
            <th class="zx-goods-table"><?= $model->attributeLabels()['status']; ?></th>
            <td><?= $form->field($model, 'status', ['template' => '{input}{error}{hint}'])->dropDownList(['1' => '启用', '2' => '禁用'], ['prompt' => '请选择', 'style' => 'width:180px', 'class' => 'input-dropdownlist']) ?></td>
        </tr>
    </table>
    <div class="m_top_10 btn" style="display: none">
        <?= \yii\helpers\Html::submitButton('提交', ['class' => "button", 'id' => 'dosubmit']) ?>
    </div>
<?php \yii\widgets\ActiveForm::end(); ?>